<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta base="/">
		<meta charset="utf-8">
		<!--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">-->
		<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0，viewport-fit=cover" />
		<title>
			<%= htmlWebpackPlugin.options.title %>
		</title>
		<script>
			var UA = window.navigator.userAgent.toLowerCase();
			var isAndroid = UA.indexOf('android') > 0;
			var isIOS = /iphone|ipad|ipod|ios/.test(UA);
			if (!(isAndroid || isIOS)) {
				// 正式发布的时候使用，开发期间不启用。
				// window.location.href = '/h5/pcguide.html';
			}

            (function() {
                if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") {
                    handleFontSize();
                } else {
                    if (document.addEventListener) {
                        document.addEventListener("WeixinJSBridgeReady", handleFontSize, false);
                    } else if (document.attachEvent) {
                        document.attachEvent("WeixinJSBridgeReady", handleFontSize);
                        document.attachEvent("onWeixinJSBridgeReady", handleFontSize);  }
                }
                function handleFontSize() {
                    // 设置网页字体为默认大小
                    WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize' : 0 });
                    // 重写设置网页字体大小的事件
                    WeixinJSBridge.on('menu:setfont', function() {
                        WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize' : 0 });
                    });
                }
            })();

		</script>
		<script>
			document.addEventListener('DOMContentLoaded', function() {
				document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
			})

		</script>
		<style>
			body { /* IOS禁止微信调整字体大小 */
				-webkit-text-size-adjust: 100% !important;
				text-size-adjust: 100% !important;
				-moz-text-size-adjust: 100% !important;
			}
		</style>

		<script>
			var
				str = Date.now().toString(32),
				v = sessionStorage.getItem('version') || (sessionStorage.setItem('version',str),str)
			;
			document.writeln('<link rel="stylesheet" href="<%= BASE_URL %>static/index.css?v='+ v +'" />')
		</script>
	</head>
	<body>

		<!-- 该文件为 H5 平台的模板 HTML，并非应用入口。 -->
		<!-- 请勿在此文件编写页面代码或直接运行此文件。 -->
		<!-- 详见文档：https://uniapp.dcloud.io/collocation/manifest?id=h5-template -->
		<noscript>
			<strong>Please enable JavaScript to continue.</strong>
		</noscript>
		<div id="app"></div>
		<!-- built files will be auto injected -->
		<script>
			/*BAIDU_STAT*/
		</script>
	</body>
</html>
